#ifndef __SERVER_H__
#define __SERVER_H__

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <pthread.h>

typedef struct {
    int in_radar_sock;
    int out_radar_sock;

    int in_video_sock;
    int out_video_sock;

    int platform_client_sock;
} server_config_t;

typedef struct {
    pthread_mutex_t relay_mutex;
    pthread_mutex_t pole_relay_mutex;
} sync_manager_t;

void init_communication(void);
void close_all_socket(void);
#endif  // !__SERVER_H__
